import { Button, Checkbox, Column, Filter, Icon, Input, Modal, Select, Table, Toolbar, VXETable } from 'vxe-table';

export const setupVxeTable = (app) => {
  VXETable.setup({
    icon: {
      MODAL_LOADING: '',
    },
    table: {
      showOverflow: 'title',
      round: true,
    },
    zIndex: 1900,
  });
  // 表格功能
  app
    .use(Icon)
    .use(Column)
    .use(Button)
    .use(Checkbox)
    .use(Input)
    .use(Select)
    .use(Toolbar)
    .use(Table)
    .use(Modal)
    .use(Filter);
  window['$VXETable'] = VXETable;
};
